Ext.ns("Ext.ux.Toast");
Ext.ux.Toast = function() {
	var c;
	function d(b, a) {
		return [
				'<div class="msg">',
				'<div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>',
				'<div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc"><h3>',
				b,
				"</h3>",
				a,
				"</div></div></div>",
				'<div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>',
				"</div>"].join("");
	}
	return {
		msg : function(a, b) {
			if (!c) {
				c = Ext.DomHelper.insertFirst(document.body, {
							id : "msg-div",
							style : "position:absolute;z-index:10000"
						}, true);
			}
			var g = String.format.apply(String, Array.prototype.slice.call(
							arguments, 1));
			var h = Ext.DomHelper.append(c, {
						html : d(a, g)
					}, true);
			c.alignTo(document, "t-t");
			h.slideIn("t").pause(2.5).ghost("t", {
						remove : true
					});
		}
	};
}();